<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="{TPL}css/NewTopFoot.css" rel="Stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="{TPL}css/AddItemPanel.css">
<link type="text/css" id="styleName" rel="stylesheet" href="{TPL}css/blue/color.css"/ >    

<script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>
<script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>
<script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/wdggcGobal.js"></script>
<link type="text/css" rel="stylesheet" href="{TPL}css/changeEmail.css">


    <style type="text/css">
    #ad20100727{z-index:100;display:none;moz-opacity:0.56;opacity: 0.56; filter:alpha(opacity=56); height:40px;background:#fff url({TPL}images/footlayer.jpg) repeat-x 0 0;position:fixed;_position:absolute;bottom:0;border-top:#5BB6D0 solid 2px;left:0;right:0;width:100%;}
.gg_close{width:15px;right:10px;margin:5px 0 -100px 0;background:url({TPL}images/1000912.gif) no-repeat center 2px;height:15px;position:absolute;z-index:100;}
.gg_img{float:left;position:fixed;_position:absolute;bottom:0;background:;z-index:8;width:950px;height:40px;cursor:pointer;}
.gg_img span{height:40px;width:950px;display:block;}
.zd_hf{position:fixed;_position:absolute;margin-left:-475px;left:50%;height:40px;width:950px;bottom:0;z-index:110;display:none;}
    </style><title>添加代运{$cfg_site_name}</title></head>

<body>

{template 'header'}
    
    
    <div class="admin">
        <div class="ding">
            <div class="shouye">
                <a title="我的会员中心" href="{url_m.php}"></a>
            </div>
            <div class="lb">
                <div class="weizhi">
                      <b>{lang Location}：</b><a href="{url_m.php}">{lang Member_Center}</a><span>&gt;</span>添加代运
                  </div>
                
                <div class="shezhi">
                    <p>
                        <a href="{url_m.php}">{lang My_Member_Center}</a><span>|</span>{lang Setting_style}：</p>
                    <ul>
                        <li onClick="changeStyle('orange')" class="mypanliS1"></li>
                        <li onClick="changeStyle('grey')" class="mypanliS2"></li>
                        <li onClick="changeStyle('blue')" class="mypanliS3"></li>
                    </ul>
                </div>
            </div>
        </div>

{template 'member_left'}  


<form id="aspnetForm" action="m.php?name=express_add&action=save" method="post" name="aspnetForm">


    <div class="fill">
			<div class="buzhou" style="display:none">
				<img alt="修改E-mail第一步" src="{TPL}images/e_1.gif">
				<script type="text/javascript">
				    var p1 = "为了确保您的账户安全,请您输入网站的登录密码";
				    var p2 = "请您输入新Email地址";
				    var p3 = "请您确认新Email地址";
				    var p4 = "请您输入下图中的字符";
				   
				    function focusCheck(dom, str) {
				        if ($(dom).val().length > 0)
				            $(dom).attr("class", "").next("p").attr("class", "").html("");
				        else
				            $(dom).attr("class", "").next("p").attr("class", "").html(str);
				    }
				    function CleanTxt(dom, str) {
				        if ($(dom).val().length > 1) {
				            $(dom).attr("class", "").next("p").html("").attr("class", "");
				        }
				       
				    }
				    var emailchecked = false;
				    function IsUsedEmail(dom,email) {
				        $.ajax({
				            type: "POST",
				            url: "/m.php?name=changeemail&action=checkemail",
				            dataType: "json",
				            contentType: "application/json;utf-8",
				            data: "{'email':'" + email.toLowerCase() + "'}",
				            timeout: 10000,
				            error: function(a, b, c) { emailchecked = true; },
				            success: function(msg) {
				            if (msg != "OK") {
				                $(dom).attr("class", "red").next("p").html("Email地址已被占用，请使用其他Email地址").attr("class", "red");
				                    emailchecked = false;
				                }
				                else {
				                    $(dom).attr("class", "").next("p").html("恭喜！E-mail地址可用！").attr("class", "lv");
				                    emailchecked = true;
				                }
				            }
				        });
				        return emailchecked;
				    }
				    
				    function regEmail(dom) {
				        var email = $.trim($(dom).val());
				        if (email.length > 0) {
				            if (email == "{$value['email']}") {
				                $(dom).attr("class", "red").next("p").html("新Email地址不能与当前Email地址相同!").attr("class", "red"); emailchecked = false;
				            }
				            else if (new RegExp("\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*").test(email)) {
				            if (new RegExp("^[A-Za-z-0-9._@]+$").test(email)) {
				                IsUsedEmail(dom, email);
				                if ($("#regEmailTxt").val().length > 0) {
				                    checkRegEmail("#regEmailTxt");
				                }
				                }
				                else
				                    $(dom).attr("class", "red").next("p").html("只能由英文、数字、点、减号、下划线组成 !").attr("class", "red"); emailchecked = false;
				            }
				            else {
				                $(dom).attr("class", "red").next("p").html("Email地址格式错误,请重新输入!").attr("class", "red"); emailchecked = false;
				            }
				        }
				        else {
				            $(dom).attr("class", "").next("p").html(p2).attr("class", ""); emailchecked = false;
				        }
				    }
				    var regEmailchecked = false;
				    function checkRegEmail(dom) {
				        var regEmail = $.trim($(dom).val());
				        if(regEmail.length>0) {
				            if (regEmail == $("#newEmailTxt").val()) {
				                regEmailchecked = true;
				            }
				            else {
				                regEmailchecked = false;
				                $(dom).attr("class", "red").next("p").html("重复输入地址与第一次不同，请重新输入！").attr("class", "red");
				            }
				        }
				    }
				    var checkcodechecked = false;
				    function checkCode(dom) {
				        var checkCode = $.trim($(dom).val()).toLowerCase();
				        if (checkCode == "") {
				            $(dom).nextAll("p").html("请您输入下图中的字符"); checkcodechecked = false;
				        }
				        else {
				            $.ajax({
				                type: "GET",
				                url: "m.php?name=changepassword&action=checkcode&code=" + checkCode + "&r=" + new Date(),
				                dataType: "text",
				                timeout: 10000,
				                error: function(a, b, c) { checkcodechecked = true; },
				                success: function(msg) {
				                    if (msg == '0') {
				                        checkcodechecked = false;
				                        $(dom).attr("class", "red").next("p").html("验证码错误，请重新输入!").attr("class", "red");
				                    }
				                    else {
				                        checkcodechecked = true;
				                        $(dom).attr("class", "").next("p").html("").attr("class", "");
				                    }
				                }
				            });
				        }
				    }
				    function ClearnAll() {
				        if (confirm("重新填写将清空表单,确定要重填吗?")) {
				            $("#custom_number").val("").attr("class", "").next("p").attr("class", "").html(p1);
				            $("#addressee").val("").attr("class", "").next("p").attr("class", "").html(p2);
				            $("#regEmailTxt").val("").attr("class", "").next("p").attr("class", "").html(p3);
				            $("#regCodeTxt").val("").attr("class", "").next("p").attr("class", "").html(p4);
				            $("#regCheckCode").click();
				        }
				    }
				    function CheckForm() {
				        checkCode("#regCodeTxt");
				        var flag = false;
				        if ($.trim($("#custom_number").val()).length < 1) {
				            $("#custom_number").attr("class", "red").next("p").html("请您输入客户编号").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#addressee").val()).length < 1) {
				            $("#addressee").attr("class", "red").next("p").html("请您输入收件人").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#phone").val()).length < 1) {
				            $("#phone").attr("class", "red").next("p").html("您重复输入联系电话").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#city").val()).length < 1) {
				            $("#city").attr("class", "red").next("p").html("请您输入城市").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#post").val()).length < 1) {
				            $("#post").attr("class", "red").next("p").html("请您输入邮编").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#address").val()).length < 1) {
				            $("#address").attr("class", "red").next("p").html("请您输入详细地址").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#safe_price").val()).length < 1) {
				            $("#safe_price").attr("class", "red").next("p").html("没有填写保险金额").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#custom_number").val()).length > 0 ) {
				            flag = true;
				        return flag;
				        }
				    }
				    function SubmitForm() {
				        if (CheckForm()) {
				          $("form")[0].submit();
				        }
				    }
				    $(document).ready(function() {
				        $("#regCodeTxt").keydown(function(e) {
				            if (e.keyCode == 13) SubmitForm();
				        })
				        regEmail("#newEmailTxt");
				    });
				</script>

			</div>
<div class="biao">
				<table>
				  <tbody><tr>
					<td class="z">用户名：</td>
					<td>{$value['uname']}</td>
                                        <input type="hidden" value="{$value['uname']}" id="uname" name="uname">
				  </tr>
				  <tr>
					<td class="z">客户编号：</td>
                                        <td>
                                          <input type="text" value="" id="custom_number" name="custom_number">
						<p style="">请向客服索取</p>
					</td>
				  </tr>
				  <tr>
					<td class="z">收件人：</td>
					<td>
						<input type="text" value=""  maxlength="80" id="addressee" name="addressee" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z">联系电话：</td>
					<td>
						<input type="text" value=""  maxlength="80" id="phone" name="phone" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr style="display:none;">
					<td class="z">城市：</td>
					<td>
						<input type="text" value="city"  maxlength="80" id="city" name="city" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr style="display:none;">
					<td class="z">邮编：</td>
					<td>
						<input type="text" value="100000"  maxlength="80" id="post" name="post" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z">详细地址：</td>
					<td>
						<input type="text" value=""  maxlength="80" id="address" name="address" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z">发货地区：</td>
                                        <td>
                                          <input style="width:15px;float:none;" type="radio" value="西马" name="send_city"> 西马&nbsp;&nbsp;
                                          <input style="width:15px;float:none;" type="radio" value="东马" name="send_city"> 东马&nbsp;&nbsp;
                                          <input style="width:15px;float:none;" type="radio" value="新加坡" name="send_city"> 新加坡&nbsp;&nbsp;
                                          <input style="width:15px;float:none;" type="radio" value="泰国" name="send_city"> 泰国&nbsp;&nbsp;
                                          <input style="width:15px;float:none;" type="radio" value="其他" name="send_city"> 其他&nbsp;&nbsp;
                                        </td>
				  </tr>
				  <tr>
					<td class="z">运输方式:</td>
                                        <td>
                                          <input  style="width:15px;float:none;" type="radio" value="ABX空运" name="transport_type" checked="checked">ABX空运
                                          <br>
                                          <input  style="width:15px;float:none;" type="radio" value="Skynet空运" name="transport_type">Skynet空运
                                          <br>
                                          <input  style="width:15px;float:none;" type="radio" value="ABX敏感空运" name="transport_type">ABX敏感空运
                                          <br>
                                          <input  style="width:15px;float:none;" type="radio" value="Skynet 敏感空运" name="transport_type">Skynet 敏感空运
                                          <br>
                                          <input  style="width:15px;float:none;" type="radio" value="海运" name="transport_type">海运
                                          <br>
                                          <input  style="width:15px;float:none;" type="radio" value="海运（团购）" name="transport_type"> 海运（团购）
                                          <br>
                                          <input  style="width:15px;float:none;" type="radio" value="Kangaroo空运" name="transport_type">Kangaroo空运
                                          <br>
                                          <input  style="width:15px;float:none;" type="radio" value="Kangaroo敏感空运" name="transport_type">Kangaroo敏感空运
                                          <br>
                                          <input  style="width:15px;float:none;" type="radio" value="其他" name="transport_type">其他
                                          <br>
                                        </td>
                                  </tr>
				  <tr>
					<td class="z">运输方式:</td>
                                        <td>
                                          先付款后发货
                                        </td>
                                  </tr>
				  <tr>
					<td class="z">是否含税:</td>
                                        <td>
                                          <input style="width:15px;float:none;"  style="width:15px;float:none;" type="radio" value="1" name="is_tariff">含税&nbsp;&nbsp;<input type="radio" value="0" name="is_tariff" checked="checked" style="width:15px;float:none;" >不含税
						<p style=""></p>
                                        </td>
                                  </tr>
				  <tr style="display:none;">
                                    <td class="z">购买保险:</td>
                                    <td><input type="text" value="0" class="input_text_50" id="safe_price" name="safe_price">RM
                                    <p>  温馨提示：没有购买保险的订单在发生包裹遗失等问题最高赔偿金额为100美金！</p>
                                    </td>
                                  </tr>
				</tbody></table>
			</div>
			<div class="tijiao"><input type="button" onClick="SubmitForm()" onMouseOut="this.className=''" onMouseOver="this.className='by'" value="确认添加" name="commit" class=""></div>
		</div>


        <div class="yj">
        </div>
    </div>
    
{template 'footer'}

    </form>
</body>
</html>
